From c50170e0d7d680f3c4da557381b1a708c1c42d3d Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 5 Dec 2003 22:40:11 +0000 Subject: [PATCH] Don't double-free email and author if reading multiple files. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@592 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index f40512b66..09f29e3c8 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -742,12 +742,15 @@ gpx_rd_deinit(void) { if ( cdatastr ) { xfree(cdatastr); + cdatastr = NULL; } if ( gpx_email ) { xfree(gpx_email); + gpx_email = NULL; } if ( gpx_author ) { xfree(gpx_author); + gpx_author = NULL; } if (fd) { fclose(fd); -- 2.30.2